package com.zlp.springcloud;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/15 9:43
 */
@SpringBootApplication
@EnableFeignClients//使用feign之后就不用配置eureka客户端，此时也不需要在注册到eureka服务器上
@EnableHystrix
public class OrderHystrixApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderHystrixApp.class,args);
    }
}
